package com.leenmvc.core.security.entity.core;

import com.leenmvc.core.annotation.DbInfo;
import com.leenmvc.core.annotation.PrimaryKey;
import com.leenmvc.core.annotation.TableField;
import com.leenmvc.core.annotation.validator.Uniqueness;
import com.leenmvc.core.annotation.validator.groups.AddGroup;
import com.leenmvc.core.annotation.validator.groups.UpdateGroup;
import com.leenmvc.core.base.BaseEntity;

import javax.validation.constraints.NotBlank;

/**
 * 提示信息的实体
 *
 */
@DbInfo(value = "sys_tip", comment = "提示语")
public class SysTip extends BaseEntity {

    @PrimaryKey
    private Long id;

    @Uniqueness(groups = {AddGroup.class, UpdateGroup.class})
    @NotBlank(message = "identification不能为空", groups = {AddGroup.class,UpdateGroup.class})
    private String identification;

    private int paramNum;

    @TableField(false)
    private String tip;

    private String remark;

    @NotBlank(message = "module不能为空", groups = {AddGroup.class,UpdateGroup.class})
    private String module;

    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getParamNum() {
        return paramNum;
    }

    public void setParamNum(int paramNum) {
        this.paramNum = paramNum;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getIdentification() {
        return identification;
    }

    public void setIdentification(String identification) {
        this.identification = identification;
    }

    public String getTip() {
        return tip;
    }

    public void setTip(String tip) {
        this.tip = tip;
    }
}
